package cn.edu.zafu.bigdata.yt.equals;

public class Cube_yt {
    private double length;
    private double width;
    private double height;

    public Cube_yt(double length, double width, double height) {
        this.length = length;
        this.width = width;
        this.height = height;
    }

    public double getLength() {
        return length;
    }

    public double getWidth() {
        return width;
    }

    public double getHeight() {
        return height;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        
        Cube_yt other = (Cube_yt) obj;
        
        return Double.compare(length, other.length) == 0 &&
               Double.compare(width, other.width) == 0 &&
               Double.compare(height, other.height) == 0;
    }
}
